package com.qinggeng.project.api.controller;


import com.qinggeng.framework.web.domain.AjaxResult;
import com.qinggeng.project.system.service.GsdRequestUrlService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("${apiPath}/getGsdRequestUrl")
@CrossOrigin
public class ApiGsdRequestUrlController {
    @Resource
    private GsdRequestUrlService gsdRequestUrlService;

    @GetMapping("/init")
    public AjaxResult init(){
        String url= gsdRequestUrlService.getRequestInitUrl();
        return AjaxResult.success(url);
    }
}
